﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DTO;
using DAO;

namespace BUS
{
    public class ChiTietPhieuDV_BUS
    {
        private static ChiTietPhieuDV_BUS m_instance = null;

        public static ChiTietPhieuDV_BUS Instance
        {
            get
            {
                if (m_instance == null)
                {
                    m_instance = new ChiTietPhieuDV_BUS();
                }
                return m_instance;
            }
        }

        public bool ThemChiTietPhieuDichVu(ChiTietPhieuDV_DTO phieu)
        {
            return ChiTietPhieuDV_DAO.Instance.ThemChiTietPhieuDichVu(phieu.MaPhieuDV, phieu.MaDV, phieu.SoLuong, phieu.DonGia);
        }
    }
}
